package com.tongji.admin.model
{
	import mx.collections.ArrayCollection;
	
	import org.robotlegs.mvcs.Actor;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2011/7/
	 */
	[Bindable]
	public class GoodsModel extends Actor
	{
		public var goodsArray:ArrayCollection;
		public var goodsTypeArray:ArrayCollection;
		public var doorXML:XML;
		public var currentTypeID:int;
		
		public function GoodsModel()
		{
			super();
		}
		
		public function updateGoods(goodsArray:ArrayCollection):void
		{
			this.goodsArray = goodsArray;
		}
		
		public function updateGoodsType(goodsTypes:ArrayCollection):void
		{
			this.goodsTypeArray = goodsTypes;
			doorXML = goodsTypeArray[0] as XML;
		}
	}
}